package com.sc.nft.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sc.nft.entity.DaoPledgeRewardProduce;
import com.sc.nft.mapper.DaoPledgeRewardProduceMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * dao质押活动奖励产出表(sc_dao_pledge_reward_produce)数据DAO
 *
 * @author jinpinhai
 * @description Generator
 * @since 2024-11-26 17:14:03
 */
@Slf4j
@Repository
public class DaoPledgeRewardProduceDao extends ServiceImpl<DaoPledgeRewardProduceMapper, DaoPledgeRewardProduce> {

    public List<DaoPledgeRewardProduce> listByRewardPeriodsId(List<Long> rewardPeriodsId) {
        LambdaQueryWrapper<DaoPledgeRewardProduce> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.in(DaoPledgeRewardProduce::getRewardPeriodsId, rewardPeriodsId);
        return list(queryWrapper);
    }


}